Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgraded Gradle to 8.7.1 #187

Closed
wants to merge 1 commit into from
Closed

Conversation

larssn
Copy link
Contributor

@larssn larssn commented Oct 18, 2024

Since Flutter now defaults to Gradle 8, I've taken the liberty of upgrading Gradle to 8.7.1.

Also ran through all the Gradle settings, and brought them up to date with the standard from a vanilla platform plugin.
Removed the Kotlin dependencies, as they are not needed.

Changed the build targets to Java 8, as minSdk 26 requires this:

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
    jvmTarget = "1.8"
}

This should result in "correct" bytecode, which is also why Flutter is doing this.

Finally did a succesful test on a physical Pixel 5.

Closes #186
(All workarounds can also be removed)

Removed redundant configuration
@larssn
Copy link
Contributor Author

larssn commented Nov 20, 2024

@Harry-Chen Any thoughts on this?

Harry-Chen added a commit that referenced this pull request Dec 20, 2024
Now it requires at least Java 17 and Gradle 8.9.

See #179, #184, #187

Signed-off-by: Shengqi Chen <[email protected]>
@Harry-Chen
Copy link
Contributor

@larssn Sorry for the late reply. I think Java 8 is too legacy these days. But I merged all your other changes in master.

Maybe it you are using old devices, you can use some tricks like matanshukry/flutter_google_places_sdk#71 (comment) to override the settings in this project?

Also, could you try the latest master branch when available?

@Harry-Chen
Copy link
Contributor

Oh I see -- the review from #179 was also from you. So maybe using 1_8 is feasible now?

@larssn
Copy link
Contributor Author

larssn commented Dec 23, 2024

Yeah I've done a lot of research on the topic, and using 1_8 is completely legit.
Without going into too much detail, it's related to the minimum device level we can use, and what bytecode that android version "expects".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation issue after upgrading to Android Studio Ladybug | 2024.2.1
2 participants